package com.zjj.learn.javaplus.pkg06.demo604;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class FileReaderTest1 {

    public static void main(String[] args) throws IOException {
        FileReader reader = new FileReader("ab1.txt");
        int i;
        //每次读取一个字符
        while ((i = reader.read()) != -1){
            System.out.println((char)i);
        }
        reader.close();
    }

}
